package zmx;

public class Z3 {

	public static void main(String[] args) {
		int arr [] = {10,9,30,25,50,1};
		ma(arr);
	}
	public static void ma(int arr[]) {
		int a = arr[0];
		for (int j = 0; j < arr.length; j++) {
			for (int i = 0; i < arr.length; i++) {
			if(arr[i]<arr[j]) {
				a = arr[j];
				arr[j] = arr[i];
				arr[i] = a;
			}
		}
		}
		
		for (int i = 0; i < arr.length; i++) {
			System.out.print(arr[i]+",");
		}
	}
	}


